import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from "@angular/forms";
import { PublicOfferingRoutingModule } from './public-offering-list-routing.module';
import { AppPaginationModule } from "../../../widgets/pagination/pagination.module";

// import { PublicListComponent } from './list.component';
import { FileUploadModule } from 'ng2-file-upload';
import { CustomFormsModule } from 'ng2-validation';
import { FashjjlxComponent } from './fashjjlx/fashjjlx.component';
import { ZhbbhComponent } from './zhbbh/zhbbh.component';
import { YbhzshComponent } from './ybhzsh/ybhzsh.component';
import { YhpComponent } from './yhp/yhp.component';
import { YfxComponent } from './yfx/yfx.component';
import { FundInfoHistoryComponent } from '../modal/fundInfo-history/fundInfo-history.component';
import { FundInfoChangeComponent } from '../modal/fundInfo-change/fundInfo-change.component';
import { FlatpickrModule, FLATPICKR } from '../../../../assets/angularx-flatpickr';
import { PublicEventService } from  '../public-event.service';
import { SearchComponent } from './../modal/search/search.component';
import * as flatpickr from 'flatpickr';
export function flatpickrFactory() {
  return flatpickr;
}
@NgModule({
  imports: [
    CommonModule,
    PublicOfferingRoutingModule,
    FormsModule,
    FileUploadModule,
    CustomFormsModule,
    AppPaginationModule,
    FlatpickrModule.forRoot({
      provide: FLATPICKR,
      useFactory: flatpickrFactory
    })
  ],
  providers: [PublicEventService],
  declarations: [FashjjlxComponent, ZhbbhComponent, YbhzshComponent, YhpComponent, YfxComponent, FundInfoHistoryComponent,FundInfoChangeComponent,SearchComponent],
  entryComponents: [FundInfoHistoryComponent,FundInfoChangeComponent,SearchComponent], // 特性模块
})
export class PublicOfferingListModule { }
